<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-haoyouhongbao-edit" th:object="${haoyouhongbao}">
            <input id="haoyouhongbaoId" name="haoyouhongbaoId" th:field="*{haoyouhongbaoId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">最小金额：</label>
				<div class="col-sm-8">
					<input id="smallMoney" name="smallMoney" th:field="*{smallMoney}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最大金额：</label>
				<div class="col-sm-8">
					<input id="bigMoney" name="bigMoney" th:field="*{bigMoney}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最小积分：</label>
				<div class="col-sm-8">
					<input id="smallJiFen" name="smallJiFen" th:field="*{smallJiFen}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最大积分：</label>
				<div class="col-sm-8">
					<input id="bigJiFen" name="bigJiFen" th:field="*{bigJiFen}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<input id="status" name="status" th:field="*{status}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">扩展字段：</label>
				<div class="col-sm-8">
					<input id="attribute" name="attribute" th:field="*{attribute}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/haoyouhongbao";
		$("#form-haoyouhongbao-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-haoyouhongbao-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
